package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;

import java.util.List;

public interface DishService {
    //菜品列表分页查询
    Page<Dish> findByPage(String name, Integer pageNum, Integer pageSize);

    //保存
    void save(Dish dish);

    //根据id查询菜品
    Dish findById(Long id);

    //修改
    void update(Dish dish);

    //根据分类id查询菜品列表
    List<Dish> findByCategoryId(Long categoryId);
}